package com.yonyou.brigade.third_parties.common.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author houyb
 * @since 2020-04-22
 */
@TableName("bri_icon")
public class BriIcon extends Model<BriIcon> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 商旅系统代码
     */
    @TableField("channel_code")
    private String channelCode;
    /**
     * 入口名称
     */
    @TableField("icon_name")
    private String iconName;
    /**
     * 图标文件名称
     */
    private String icon;
    /**
     * 入口排序
     */
    private Integer sequence;
    /**
     * 入口key
     */
    @TableField("icon_key")
    private String iconKey;
    /**
     * 是否启用
     */
    private Integer valid;
    private Date ts;
    /**
     * 是否为根图标
     */
    @TableField("is_root")
    private Integer isRoot;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getChannelCode() {
        return channelCode;
    }

    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }

    public String getIconName() {
        return iconName;
    }

    public void setIconName(String iconName) {
        this.iconName = iconName;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    public String getIconKey() {
        return iconKey;
    }

    public void setIconKey(String iconKey) {
        this.iconKey = iconKey;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public Integer getIsRoot() {
        return isRoot;
    }

    public void setIsRoot(Integer isRoot) {
        this.isRoot = isRoot;
    }

    public static final String ID = "id";

    public static final String CHANNEL_CODE = "channel_code";

    public static final String ICON_NAME = "icon_name";

    public static final String ICON = "icon";

    public static final String SEQUENCE = "sequence";

    public static final String ICON_KEY = "icon_key";

    public static final String VALID = "valid";

    public static final String TS = "ts";

    public static final String IS_ROOT = "is_root";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BriIcon{" +
        "id=" + id +
        ", channelCode=" + channelCode +
        ", iconName=" + iconName +
        ", icon=" + icon +
        ", sequence=" + sequence +
        ", iconKey=" + iconKey +
        ", valid=" + valid +
        ", ts=" + ts +
        ", isRoot=" + isRoot +
        "}";
    }
}
